<template>
	<view class="avaterbigbox">
		<view :style="{height:height+'rpx',width:width+'rpx',backgroundColor:bgc,lineHeight:(height-10)+'rpx',borderRadius:(width/2)+'rpx'}" class="avaterBox">
			<image :src="src" mode="aspectFill" :style="{height:(height-20)+'rpx',width:(width-20)+'rpx',borderRadius:(width/2)+'rpx'}" class="avaterImg"></image>
		</view>
	</view>
</template>

<script>
	export default {
		name: "avater",
		props: {
			src: {
				type: String,
				default: ""
			},
			bgc: {
				type: String,
				default: "#FFCFCF"
			},
			width: {
				type: String,
				default: "220rpx"
			},
			height: {
				type: String,
				default: "220rpx"
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style>
.avaterImg{
	vertical-align: middle;
	
}
.avaterBox{
	text-align: center;
	border-radius: ;
}
.avaterbigbox{
	display: inline-block;
}
</style>
